{title}Your Cue sheet{/title}

<ul id="navigation">
    <li><a href=".">Create new one</a></li>
    <li><a href="?session={$session_key}">Edit current one</a></li>
</ul>

<br /><br />
<textarea id="cuesheet">
PERFORMER "{$cue.perfomer_common|escape:"quotes"|lower|capitalize:true}"
TITLE "{$cue.title_common|escape:"quotes"|lower|capitalize:true}"
FILE "{$cue.file_common|escape:"quotes"}" MP3
{section loop=$cue.rows_number name="tracks"}
{assign var="iteration" value=$smarty.section.tracks.iteration}
{assign var="title" value="title["|cat:$iteration|cat:"]"}
{assign var="perfomer" value="perfomer["|cat:$iteration|cat:"]"}
{assign var="hours" value="index["|cat:$iteration|cat:"][hr]"}
{assign var="minutes" value="index["|cat:$iteration|cat:"][mn]"}
{assign var="seconds" value="index["|cat:$iteration|cat:"][sc]"}
{assign var="frames" value="index["|cat:$iteration|cat:"][fr]"}
  TRACK {$iteration} AUDIO
    TITLE "{$cue.$title|escape|cueize}"
    PERFORMER "{$cue.$perfomer|escape|cueize}"
    INDEX 01 {$cue.$hours|time:$cue.$minutes:$cue.$seconds:$cue.$frames}
{/section}
</textarea>
